package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    T loadById(Long id);
    List<T> loadAll();
    //返回符合条件的总条数
    Long count(BaseQuery query);
    //返回页面的数据方法  select * from t_employee limit ?,?
    List<T> queryPage(BaseQuery query);

}
